package com.iclient.dao.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iclient.dao.mapper.SinaWbMapper;
import com.iclient.dao.model.SinaWb;
import com.iclient.dao.service.SinaWbService;

@Service("sinaWbService")
public class SinaWbServiceImpl implements SinaWbService{

	@Autowired
	private SinaWbMapper sinaWbMapper;
	
	@Override
	public void addWb(SinaWb sinaWb) {
		if(null != sinaWbMapper.findByMid(sinaWb.getMid()))
			return;
		sinaWbMapper.insert(sinaWb);
	}

}
